Digital watermarking technique

ABSTRACT

A watermarking system allowing both sufficiently high quality of watermarked moving pictures and enhanced ease of watermark detection is disclosed. A watermark level of a watermark to be embedded into a picture of data is changed depending on the picture type of a selected block of frequency component data, and then a watermark having the watermark level is inserted into the selected block of frequency component data. Therefore, a moving-picture can be effectively embedded with a digital watermark without substantially reducing the quality of image and the digital watermark can be detected reliably. A relative proportion of watermark levels of I-picture, B-picture, and P-picture is preferably set to 10:7:5.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to digital watermarking of moving-picture data and in particular to a method and system for inserting watermark data into the moving-picture data.

[0003] 2. Description of the Prior Art

[0004] With wide-spreading digital satellite broadcasting, Internet transmission and DVD (Digital Video Disk), etc. in recent years, digital images are becoming easily accessible to users. Since the quality of digital images does not deteriorate when they are copied, securing their copyrights has been an important issue.

[0005] For purposes of securing copyright protection for MPEG (moving picture experts group) data, there have been disclosed a watermarking system for embedding a plurality of watermarks into DCT (discrete cosine transform) coefficient domain of MPEG data and a watermark detecting system for extracting and detecting the embedded watermarks from the watermarked MPEG data (see Japanese Patent Application Unexamined Publication No. 11-55639).

[0006] More specifically, a plurality of watermarks different from each other are previously stored each corresponding to picture types (I-, B-, and P-pictures in MPEG). In the watermarking system, one watermark is selected from the plurality of watermarks depending on the type of a picture to be encoded and is embedded into the image data in units of 8×8 DCT coefficient block.

[0007] Assuming that f(1), f(2), . . . f(n) are DCT coefficients listed in frequency-ascending order, a watermarked coefficient F(1) is calculated by the following equation:

F(i)=f(i)+α×avg(f(i))×w(i),

[0008] where i=1, 2, 3, . . . n, w(i) is an element of a watermark selected according to a normal distribution with mean mx=0 and variance σ²=1, α is a scaling element, and avg(f(i) )represents a local average over three DCT coefficients in the neighborhood, which is calculated by the following form:

avg(f)(i))=(|f(i−1)|+|f(i)|+|f(i+1)|)/3.

[0009] On the other hand, the watermark detecting system can detect an embedded watermark without the need of the original image data. The watermarked MPEG data is decoded and a watermark is extracted from the DCT components of the decoded data using the local average over the neighborhood. A watermark element W(i) is extracted by calculating the following form: F(i)/avg(F(i)). A watermark element W(i) is accumulated in one frame/field to produce WF(i).

[0010] A statistical similarity C between w(i) and WF(i) can be calculated using vector inner product as follows:

C=WF×w/(|WF|×|w|),

[0011] where WF=(WF(1), WF(2), . . . , WF(n)) and w=(w(1), w(2), . . . , w(n)).

[0012] If the statistical similarity C calculated as described above exceeds a predetermined threshold, it is determined that the corresponding watermark is embedded in the MPEG data.

[0013] However, the inventor found that a degree of embedded watermark effect on MPEG data is varied depending on the type of a picture in MPEG. If watermark frequency coefficients having a certain amplitude (level) is uniformly embedded to MPEG data regardless of the type of a picture as the prior art, then there are cases where the quality of image is deteriorated and the embedded watermark is hard to be detected.

[0014] More specifically, when the watermark is strongly embedded to the MPEG data, ease of watermark detection is enhanced but the quality of image is deteriorated. Contrarily, when the watermark is lightly embedded to the MPEG data, the quality of image is kept sufficiently but the embedded watermark becomes hard to be detected. In other words, the quality of a watermarked image is traded off against watermark detection efficiency.

SUMMARY OF THE INVENTION

[0015] It is an object of the present invention to provide a watermarking system and method allowing both sufficiently high quality of watermarked moving pictures and enhanced ease of watermark detection.

[0016] According to the present invention, a method for inserting a watermark into a selected block of frequency component data in a picture of data having one of a plurality of picture types, includes the steps of: determining a picture type of the selected block of frequency component data; determining a watermark level depending on the picture type of the selected block of frequency component data; and inserting a watermark having the watermark level into the selected block of frequency component data.

[0017] The picture types are preferably Intra-frame coding picture (hereafter, I-picture), Inter-frame Predictive coding picture (hereafter, P-picture) and Bidirectionally Predictive coding picture (hereafter, B-picture), wherein a relative proportion of watermark levels of I-picture, B-picture, and P-picture is 10:7:5.

[0018] As described above, a watermark level of a watermark to be embedded into a picture of data is changed depending on the picture type of a selected block of frequency component data, and then a watermark having the watermark level is inserted into the selected block of frequency component data. Therefore, a moving-picture can be effectively embedded with a digital watermark without substantially reducing the quality of image and the digital watermark can be detected reliably.

[0019] According to an embodiment of the present invention, a method includes the steps of: storing a plurality of watermarks for each picture type, each of the watermarks corresponding to a different block of the picture of data; determining a picture type of the selected block of frequency component data; determining a watermark level depending on the picture type of the selected block of frequency component data; selecting a watermark from the plurality of watermarks depending on which block is selected; and inserting a selected watermark having the watermark level into the selected block of frequency component data.

[0020] According to another embodiment of the present invention, a method includes the steps of: a) storing a plurality of watermarks for each of the picture types, wherein a watermark level of the watermarks varies depending on a picture type; b) selecting a watermark of a type depending on a picture type of the selected block of frequency component data; and c) inserting a watermark of a selected type into the selected block of frequency component data.

[0021] According to still another embodiment of the present invention, a method includes the steps of: a) storing a reference watermark; b) determining a picture type of the selected block of frequency component data; c) changing a watermark level of the reference watermark depending on the picture type of the selected block of frequency component data to produce a watermark to be used; and d) inserting the watermark to be used into the selected block of frequency component data.

[0022] In the step (c), the watermark level of the reference watermark may be changed depending on both the picture type of the selected block of frequency component data and the selected block.

[0023] According to another aspect of the present invention, a method for detecting a watermark from a selected block of frequency component data in a picture of data having one of a plurality of picture types, includes the steps of: storing a plurality of watermarks for each of the picture types, wherein a watermark level of the watermarks varies depending on a picture type; extracting a watermark from the selected block in the picture of data; selecting a watermark of a type depending on a picture type of the selected block; and determining whether the stored watermark is embedded in the selected block, based on an extracted watermark with a selected watermark.

[0024] According to the present invention, a system for inserting a watermark into a selected block of frequency component data in a picture of data having one of a plurality of picture types, includes: a table storing a plurality of watermarks for each of the picture types, wherein a watermark level of the watermarks varies depending on a picture type; a selector for selecting a watermark of a type depending on a picture type of the selected block of frequency component data; and an inserting section for inserting a selected watermark of a selected type into the selected block of frequency component data.

[0025] According to the present inventions a system includes: a memory storing a reference watermark; a determiner for determining a picture type of the selected block of frequency component data; a multiplier for multiplying a watermark level of the reference watermark by a factor varying depending on the picture type of the selected block of frequency component data to produce a watermark to be used; and an inserting section for inserting the watermark to be used into the selected block of frequency component data.

[0026] The multiplier may multiply a watermark level of the reference watermark by a factor varying depending on both the picture type of the selected block of frequency component data and the selected block.

[0027] The picture types are preferably Intra-frame coding picture (hereafter, I-picture), Inter-frame Predictive coding picture (hereafter, P-picture) and Bidirectionally Predictive coding picture (hereafter, B-picture), wherein a relative proportion of factors corresponding to I-picture, B-picture, and P-picture is 10:7:5.

BRIEF DESCRIPTION OF THE DRAWINGS

[0028]FIG. 1 is a block diagram showing a configuration of a watermark insertion system according to a first embodiment of the present invention;

[0029]FIG. 2 is a block diagram showing a configuration of a watermark detection system according to the first embodiment of the present invention;

[0030]FIG. 3 illustrates a layered structure of an MPEG standard format;

[0031]FIG. 4 is a schematic diagram showing forward/backward prediction operations in the MPEG standard format;

[0032]FIG. 5 illustrates a zigzag-scanning sequence;

[0033]FIG. 6 is a schematic diagram showing an example of watermark insertion operation according to the present invention; and

[0034]FIG. 7 is a block diagram showing a configuration of a watermark insertion system according to a second embodiment of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0035] Hereafter, the preferred embodiments of the present invention will be described in detail.

FIRST EMBODIMENT

[0036] Referring to FIG. 1, an original image 101 stored in a frame/field memory is divided into a plurality of k×k pixel blocks (here, k=8), which are sequentially read out as block image data 102. The block image data 102 is converted into DCT coefficient data by a DCT section 103 and then the DCT coefficient data is quantized by a quantization section 104 depending to a picture type of the original image 101. The quantized DCT coefficient data is output to a watermark insertion section 105.

[0037] A picture type decision section 106 detects the picture type X of block image data 102 when the block image data 102 is encoded in a way conforming to a predetermined standard such as MPEG or H.261. In MPEG2 standard, each frame is one of three types of picture, Intra-frame coding Picture (hereinafter referred to as “I picture”), inter-frame Predictive coding Picture (hereinafter referred to as “P picture”) and Bidirectionally predictive coding Picture (hereinafter referred to as “B picture”).

[0038] The watermark insertion section 105 embeds a watermark selected by a watermark selector 107 to the quantized DCT coefficient data. The watermark selector 107 selects a watermark from a watermark table 108 depending on the block location information and the picture type X detected by the picture type decision section 106.

[0039] The watermark table 108 contains three kinds of watermark, W(I), W(B), and W(P), corresponding to I-picture, B-picture, and P-picture respectively. The I-picture watermark W(I) consists of N watermarks: W₁(I), W₂(I), . . . , W_(N)(I), which correspond to the blocks of an I-picture, respectively. The B-picture watermark W(B) consists of N watermarks: W₁(B), W₂(B), . . . , W_(N)(B), which correspond to the blocks of a B-picture, respectively. The P-picture watermark W(P) consists of N watermarks: W₁(P), W₂(P), . . . , W_(N)(P), which correspond to the blocks of a P-picture, respectively. A watermark is represented by a set of watermark DCT coefficients.

[0040] According to the present embodiment, the relative proportion of the respective levels of I-, B-, and P-picture watermarks is set to |W(I)|:|W(B)|:|W(P)|=10:7:5. A set of watermark DCT coefficients, W_(j)(X) (j=1, 2, . . . , or N and X=I, B, or P), is obtained by multiplying a reference watermark W(e) by a picture-dependent level coefficient k_(j)(X), that is, W_(j)(X)=k_(j)(X)×W(e), wherein k_(j)(I):k_(j)(B):k_(j)(P)=10:7:5.

[0041] For example, the reference watermark W(e) may be 8-bit data “10101010”, in which the first bit represents the presence/absence of copyright protection, the second bit represents permission/inhibition of copying, and the third bit represents the limited number of copying operations.

[0042] Thereafter, the watermark-embedded DCT coefficient data is inverse-quantized by an inverse-quantization section 109 and then the output of the inverse-quantization section 109 is converted by an inverse-DCT (IDCT) section 110 into watermarked block image data 112, which is stored at the same location as the block 102 of the original image 101. By repeatedly performing the above procedure on the blocks over an entire frame/field of the original image 101, a watermarked image 111 is completed.

[0043] On the other hand, the watermark-embedded DCT coefficient data is subjected to Huffman-coding by an encoder 113 and the Huffman-coding is repeatedly performed over the entire frame/field to produce compressed moving-picture data 114 such as MPEG data. The compressed moving-picture data 114 may be stored in a recording medium such as DVD or another storage device.

[0044] Referring to FIG. 2, watermarked compressed data 201 that was produced as described above is decoded by a decoder 202 to produce watermark-embedded DCT coefficient data. The watermark-embedded DCT coefficient data is inverse-quantized by an inverse-quantization section 203 and then the output of the inverse-quantization section 203 is converted by an IDCT section 204 into watermarked image data 205.

[0045] The watermark-embedded DCT coefficient data decoded by the decoder 202 is also output to a watermark extractor 206. The watermark extractor 206 extracts watermark data on a block-by-block basis from the watermark-embedded DCT coefficient data and stores all the extracted watermark data of a picture in a memory 207. Thereafter, a watermark detector 208 reads out the extracted watermark data on a block-by-block basis from the memory 207 and calculates a statistical similarity C based on the extracted watermark and a registered watermark selected by a watermark selector 209. As described before, by comparing the calculated statistical similarity C with a predetermined threshold, it is determined whether the registered watermark is embedded in the block in question.

[0046] The watermark selector 209 selects watermark data from a watermark table 210 depending on the block location information and the type X of the picture. The watermark table 210 contains the same contents as the watermark table 108. That is, the watermark table 210 contains three kinds of watermark: W(I), W(B), and W(P) corresponding to I-picture, B-picture, and P-picture, respectively. Each of the I-, B-, and P-picture watermarks W(I), W(B), and W(P) consists of N watermarks, that is, (W₁(I), W₂(I), . . . , W_(N)(I)), (W₁(B), W₂(B), . . . , W_(N)(B)), and (W₁(P), W₂(P), . . . , W_(N)(P)).

OPERATION

[0047] Hereafter, an operation of the present invention will be described, taking an example compressed moving-picture data conforming to MPEG standard.

[0048] Referring to FIG. 3, image data that has been compressed according to MPEG standard has such a structure that a sequence header code SHC is followed by a sequence of GOP (group of picture). Here, data of each frame/field of an image is written in a picture layer following a picture start code (PSC). Each frame or field is encoded in one of three types of picture format, I picture, P picture, and B picture.

[0049] As shown in FIG. 4, in the case of P picture and B picture, only a difference between the own picture and a reference picture at a different time instant is encoded as image data. Moreover, each picture is subdivided into blocks and each block is subjected to the discrete cosine transform (DCT). Then, the DCT coefficients are quantized with an appropriate quantizing coefficient and the quantized DCT coefficients are subjected to two-dimensional Huffman coding.

[0050] The field data of each frame is inside a macro block (MB) layer under a slice layer following a slice start code (SSC). In the case where a color difference format is 4:2:0, the field data of each frame is expressed by a total of 6 block layers, 4 block layers indicating brightness data Y and 2 block layers indicating color difference data Cb and Cr.

[0051] As shown in FIG. 5, in the case of zigzag scanning, quantized DCT coefficients are scanned in a sequence of numbers and are converted to a one-dimensional sequence of 64 DCT coefficients. The position labeled with “1” in the figure expresses a DC component of the DCT domain. Horizontal spacial frequency increases from this position “1” rightward and vertical frequency increases from this position “1” downward. Thus, zigzag scanning virtually results in a one-dimensional sequence in order from low-frequency components to high-frequency components. A watermark is embedded to a block of MPEG data by adding each of watermark DCT coefficients to a corresponding one of the 64 DCT coefficients.

[0052] Referring to FIG. 6, in the case where an original image is an I-picture and a j-th block is read out, the watermark selector 107 selects the I-picture watermark W_(j)(I) from the watermark table 108. The watermark insertion section 105 adds the DCT coefficients of the selected watermark W_(j)(I) to corresponding ones of the quantized DCT coefficients to produce a watermarked I-picture indicated by I+W(I). Similarly, in the case where an original image is a B-picture, the watermark selector 107 selects the B-picture watermark DCT coefficients W_(j)(B) from the watermark table 108.

[0053] The watermark insertion section 105 adds the selected watermark DCT coefficients W_(j)(B) to corresponding ones of the quantized DCT coefficients to produce a watermarked I-picture indicated by B+W(B). In the case where an original image is a P-picture, a watermarked P-picture indicated by P+W(P) is produced by the watermark insertion section 105.

[0054] As described before, the relative proportion of the respective levels of I-, B-, and P-picture watermarks is not equal. In this embodiment, |W(I)|:|W(B)|:|W(P)| is set to 10:7:5. Watermark DCT coefficients W_(j)(X)(j=1, 2, . . . , N and X=I, B, or P) is obtained by multiplying reference watermark data W(e) by a picture-dependent level coefficient k_(j)(X), that is, W_(j)(X)=k_(j)(X)×W(e), wherein k_(j)(I):k_(j)(B):k_(j)(P)=10:7:5.

[0055] By setting the relative level proportion of the watermarks W(I), W(B) and W(P) to 10:7:5, picture degradation can be kept at a minimum while the watermark detection efficiency is kept at a sufficient level.

[0056] Further, the Inventor found that the larger the total of the relative level proportion values, I+B+P, (here, 1+0.7+0.5=2.2), the greater picture degradation. Relative to I+B+P=2.2, picture degradation becomes greater in the case of I+B+P=3. Contrarily, in the case of I+B+P=1.5, picture degradation becomes smaller but an embedded watermark is harder to be detected.

SECOND EMBODIMENT

[0057] A watermarking system according to a second embodiment of the present invention will be described with reference to FIG. 7, where circuit blocks similar to those previously described with reference to FIG. 1 are denoted by the same reference numerals and the details will be omitted.

[0058] Referring to FIG. 7, the watermarking system according to the second embodiment is formed by replacing a combination of the watermark selector 107 and the watermark table 108 in the first embodiment with a circuit composed of a memory 301 storing a reference watermark W(e), N multipliers 302, N memories 303, and a watermark selector 304.

[0059] The respective watermarks W_(j)(X) (j=1, 2, . . . , N and X=I, B, or P), are obtained by the multipliers 302 multiplying the reference watermark W(e) by N picture-dependent level coefficients k_(j)(X), that is W_(j)(X)=k_(j)(X)×W(e). More specifically, in the case of I-picture, the respective multipliers 302 are set at k₁(I), k₂(I), . . . , and k_(N)(I). Therefore, I-picture watermarks W_(j)(I) are obtained by k_(j)(I)×W(e). Similarly, in the case of B-picture, the respective multipliers 302 are set at k₁(B), k₂(B), . . . , and k_(N)(B), and in the case of P-picture, the respective multipliers 302 are set at k₁(P), k₂(P), . . . , and k_(N)(P). Therefore, the watermark selector 304 can select one of the watermarks stored in the memories 303 depending on the location of a block to be embedded with a selected watermark. This is the same operation as the first embodiment.

[0060] As in the first embodiment, k_(j)(I):k_(j)(B):k_(j)(P) is preferably set to 10:7:5. Therefore, the same advantages as the first embodiment are also achieved in the second embodiment. Further, according to the second embodiment, only N memories 303 are needed to store the necessary watermarks. Therefore, compared with the first embodiment, the necessary amount of memory can be reduced.

[0061] The watermark selector 209 and the watermark table 210 in the watermark detection system as shown in FIG. 2 may be replaced with the circuit composed of the memory 301 storing the reference watermark W(e), the N multipliers 302, the N memories 303, and the watermark selector 304.

[0062] The above-described embodiments have been explained taking the MPEG standard coding system as an example, but of course the present invention is applicable to other image coding systems using DCT, for example, JPEG standard and H.261 as well.

[0063] The watermark insertion and detection according to the above described embodiments can also be implemented by a computer running a program that instructs the computer to execute these operations.

[0064] As described above, according to the present invention, the amplitude or level of a watermark to be embedded to moving-picture data is set to an optimal level for each picture type in the moving-picture data. Therefore, both sufficiently high quality of watermarked moving picture data and enhanced ease of watermark detection can be achieved. 

1. A method for inserting a watermark into a selected block of frequency component data in a picture of data having one of a plurality of picture types, comprising the steps of: determining a picture type of the selected block of frequency component data; determining a watermark level depending on the picture type of the selected block of frequency component data; and inserting a watermark having the watermark level into the selected block of frequency component data.
 2. (Cancelled).
 3. A method for inserting a watermark into a selected block of frequency component data in a picture of data having one of a plurality of picture types, comprising the steps of: storing a plurality of watermarks for each picture type, each of the watermarks corresponding to a different block of the picture of data; determining a picture type of the selected block of frequency component data; determining a watermark level depending on the picture type of the selected block of frequency component data; selecting a watermark from the plurality of watermarks depending on which block is selected; and inserting a selected watermark having the watermark level into the selected block of frequency component data.
 4. (Cancelled).
 5. A method for inserting a watermark into a selected block of frequency component data in a picture of data having one of a plurality of picture types, comprising the steps of: a) storing a plurality of watermarks for each of the picture types, wherein a watermark level of the watermarks varies depending on a picture type; b) selecting a watermark of a type depending on a picture type of the selected block of frequency component data; and c) inserting a watermark of a selected type into the selected block of frequency component data. 6.-9. (Cancelled).
 10. A system for inserting a watermark into a selected block of frequency component data in a picture of data having one of a plurality of picture types, comprising: a table storing a plurality of watermarks for each of the picture types, wherein a watermark level of the watermarks varies depending on a picture type; a selector for selecting a watermark of a type depending on a picture type of the selected block of frequency component data; and an inserting section for inserting a selected watermark of a selected type into the selected block of frequency component data. 11.-13. (Cancelled).
 14. A method for detecting a watermark from a selected block o frequency component data in a picture of data having one of a plurality of picture types, comprising the steps of: storing a plurality of watermarks for each of the picture types, wherein a watermark level of the watermarks varies depending on a picture type; extracting a watermark from the selected block the picture of data; selecting a watermark from the stored plurality of watermarks depending on a picture type of the selected block; and determining whether the selected watermark is embedded in the selected block, based on the extracted watermark and the selected watermark.
 15. A digital watermarking method comprising the steps of: at a watermark inserting section for inserting a watermark into a selected block of frequency component data in a picture of data having one of a plurality of picture types, storing a plurality of watermarks for each picture type, each of the watermarks corresponding to a different block of the picture of data; determining a picture type of the selected block of frequency component data; determining a watermark level depending on the picture type of the selected block of frequency component data; selecting a watermark from the plurality of watermarks depending on which block is selected; and inserting a selected watermark having the level into the selected block of frequency component watermark data, and at watermark detecting section for detecting a watermark from a selected block of frequency component data in a picture of data having one of a plurality of picture types, storing a plurality of watermarks for each of the picture types, wherein a watermark level of the watermarks varies depending on a picture type; extracting a watermark from the selected block in the picture of data; selecting a watermark from the stored plurality of watermarks depending on a picture type of the selected block; and determining whether the selected watermark is embedded in the selected block, based on the extracted watermark and the selected watermark.
 16. (Cancelled).
 17. A digital watermarking system comprising: a watermark inserting device for inserting a into a selected block of frequency component data in of data having one of a plurality of picture types; and a watermark detecting device for detecting a from a selected block of frequency component data in of data having one of a plurality of picture types, wherein the watermark inserting device comprises: a first table storing a plurality of watermarks for each of the picture types, wherein a watermark level of the watermarks varies depending on a picture type; a first selector for selecting a watermark of a type depending on a picture type of the selected block of frequency component data; and an inserting section for inserting a selected watermark of a selected type into the selected block of frequency component data, and the watermark detecting device comprises: a second table for storing the plurality of watermarks for each of the picture types, wherein a watermark level of the watermarks varies depending on a picture type; an extractor for extracting a watermark from the selected block in the picture of data; a second selector for selecting a watermark from the stored plurality of watermarks depending on a picture type of the selected block; and a determiner for determining whether the selected watermark is embedded in the selected block, based on the extracted watermark and the selected watermark.
 18. (Cancelled). 